css: Kerning affects text size
authorMatthias Clasen <mclasen@redhat.com>
Thu, 18 Apr 2019 18:08:10 +0000 (18:08 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 18 Apr 2019 18:08:10 +0000 (18:08 +0000)
Thats the point. And we were missing the proper
flags to make GTK do the right thing when
changing font-kerning in the inspector.

gtk/gtkcssstylepropertyimpl.c

index 251adb4a9a614ab32644f9c294a2d6e1990ae357..a1987b751a4c01d40dea8e0ab9730d51a50d3461 100644 (file)
@@ -1063,7 +1063,7 @@ _gtk_css_style_property_init_properties (void)
                                           GTK_CSS_PROPERTY_FONT_KERNING,
                                           G_TYPE_NONE,
                                           0,
-                                          GTK_CSS_AFFECTS_TEXT_ATTRS,
+                                          GTK_CSS_AFFECTS_TEXT_ATTRS | GTK_CSS_AFFECTS_TEXT_SIZE,
                                           parse_font_kerning,
                                           NULL,
                                           _gtk_css_font_kerning_value_new (GTK_CSS_FONT_KERNING_AUTO));